@echo off 

IF %1.==. GOTO No1
IF %2.==. GOTO No2
IF %3.==. GOTO No3
... do stuff...
GOTO Endend
:No1
  ECHO No param 1
  pause
  
GOTO Endend
:No2
  ECHO No param 2
  pause
GOTO Endend

GOTO Endend
:No3
  ECHO No param 3
  pause
GOTO Endend


set stra=Hello World!!!
set strb=Here is YOLOv5 tag v6.1 Detect Workflow
set conf=%1
set weights=%2
set source=%3

echo %stra% 
echo;
ping -n 3 127.0.0.1>nul
echo %strb% 
echo;
ping -n 5 127.0.0.1>nul

echo === detect confidence is  %conf%   ===
timeout /t 6
echo === weights loaded   as  %weights%  ===
timeout /t 6
echo === detect video   is  %source%  ===
timeout /t 6


python mydetect.py --save-txt --save-conf --save-log ^
--nosave ^
--conf-thres %1 ^
--weights %2 ^
--source %3

:: notes

GOTO Endend

:Endend